var utils = require('../../../utils/util.js')
var c = require('../../../utils/config.js')
Page({

  /**
   * 页面的初始数据
   */
  data: {
    userinfo:[],
    loglist:[],
    page:1,
    img_url: c.img_url,
  },
  onLoad: function (options){
    var that = this;
    var token = wx.getStorageSync("userinfo").wap_token;
    var data = {
      url: "/yluser/user/gettokenuserinfo",
      token: token
    };
    utils.request(data).then(function (res) {
      if (res.code == 0) {
        var data = res.data;
        that.setData({
          userinfo: data,
        });
      } else {

      }
    });

    var data = {
      url: "/zfshop/uservipnumslog/lists",
      type: "",
      ym:"",
      token: token,
    };
    utils.request(data).then(function (res) {
      if (res.code == 0) {
        var data = res.data;
        that.setData({
          loglist: data.list,
        });
      } else {

      }
    });
  }
})
